#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20210908.sql ./mysql/db
cp ../sql/ry_config_20220114.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../nk-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy nk-gateway "
cp ../nk-gateway/target/nk-gateway.jar ./nk/gateway/jar

echo "begin copy nk-auth "
cp ../nk-auth/target/nk-auth.jar ./nk/auth/jar

echo "begin copy nk-visual "
cp ../nk-visual/nk-monitor/target/nk-visual-monitor.jar  ./nk/visual/monitor/jar

echo "begin copy nk-modules-system "
cp ../nk-modules/nk-system/target/nk-modules-system.jar ./nk/modules/system/jar

echo "begin copy nk-modules-file "
cp ../nk-modules/nk-file/target/nk-modules-file.jar ./nk/modules/file/jar

echo "begin copy nk-modules-job "
cp ../nk-modules/nk-job/target/nk-modules-job.jar ./nk/modules/job/jar

echo "begin copy nk-modules-gen "
cp ../nk-modules/nk-gen/target/nk-modules-gen.jar ./nk/modules/gen/jar

